/* 
 * File:   F10.h
 * Author: jcrada
 *
 * Created on 23 July 2011, 12:58 PM
 */

#ifndef JRV_F10_H
#define	JRV_F10_H

#include "ecb/base/Problem.h"

#include "ecb/function/EggHolder.h"

namespace ecb {
    namespace jrv11 {

        class F10 : public Problem {
        private:
            Problem* eggholder;
        public:

            F10(int dimensions)
            : Problem("F10", "EggHolder", dimensions,
            -512, 512, true) {
                eggholder = new EggHolder;
            }

            ~F10() {
                delete eggholder;
            }

            scalar f(const std::vector<scalar>& x) {
                return eggholder->f(x);
            }
        };
    }
}

#endif	/* JRV_F10_H */

